// white-noise-processor.js
function sleep(miliseconds) {
   var currentTime = new Date().getTime();
   while (currentTime + miliseconds >= new Date().getTime()) {
   }
}

class DelayProcessor extends AudioWorkletProcessor {
  process (inputs, outputs, parameters) {
    sleep(2);
    return true
  }
}

registerProcessor('delay-processor', DelayProcessor)
